//
//  YLSubTitleTableViewCell.m
//  YLFinanceService
//
//  Created by she1323 on 2017/8/29.
//  Copyright © 2017年 she1323. All rights reserved.
//

#import "YLSubTitleTableViewCell.h"
#import "YLProductModel.h"
@interface YLSubTitleTableViewCell ()
@property (weak, nonatomic) IBOutlet UILabel *titleLabel;
@property (weak, nonatomic) IBOutlet UILabel *contentLabel;

@end

@implementation YLSubTitleTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setModel:(YLProductModel *)model
{
    _model = model;
    _titleLabel.text = @"可用优惠券";
    _contentLabel.text = [NSString stringWithFormat:@"%zd", model.customerProductVouchers.count];
}

+ (NSString *)cellID
{
    return @"YLSubTitleTableViewCell";
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
